package lab02.test05;

/**
 * Created by w on 2017/10/15.
 */
public class Cube {
    //1.属性：立方体的长、宽和高，再定义一个方法对这三个变量进行初始化，然后定义一个方法求立方体的体积
    double length;
    double width;
    double height;

    public Cube() {
    }

    public Cube(double length, double width, double height) {
        this.length = length;
        this.width = width;
        this.height = height;

    }
    //2.行为：创建一个对象，求给定尺寸的立方体的体积。
}

